package com.zhuss.repair.repair;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.zhuss.bean.bo.repair.repair.SearchRepairBo;
import com.zhuss.bean.bo.repair.repairAudit.RepairAuditFanKuiBo;
import com.zhuss.bean.bo.repair.repairAudit.RepairAuditPaiDanBo;
import com.zhuss.bean.bo.repair.repairAudit.RepairAuditQianShouBo;
import com.zhuss.bean.bo.repair.repairAudit.RepairAuditPaiDanBackBo;
import com.zhuss.bean.bo.repair.repairAudit.RepairWeiXiuBo;
import com.zhuss.bean.bo.repair.repairAudit.RepairWuyeBo;
import com.zhuss.common.OperateService;
import com.zhuss.common.Processor;
import com.zhuss.common.SelectVo;
import com.zhuss.core.processor.CompanyRead;
import com.zhuss.core.processor.DeptRead;
import com.zhuss.core.processor.UserRead;
import com.zhuss.exception.WpsException;

/**
 * 报修操作service（基本操作）
 * @author hxx
 * @Date 2020/02/28 16:01
 *
 */
@Component("repairWeiXiuOperateService")
public class RepairWeiXiuOperateService implements OperateService<Void, Object> {
	
	@Autowired
	@Qualifier("repairWeiXiuFanKui")
	private Processor<Object, RepairWeiXiuBo> repairWeiXiuFanKui;
	
	@Autowired
	@Qualifier("weiXiuSubmit")
	private Processor<Object, RepairWeiXiuBo> weiXiuSubmit;


	
	
	//获取物业公司
	@Autowired
	@Qualifier("companyRead")
	private CompanyRead companyRead;
	//获取物业公司下属维修人员
	@Autowired
	@Qualifier("userRead")
	private UserRead userRead;
	
	
	@Override
	public Void create(Object param) throws WpsException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Void update(Object param) throws WpsException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Void delete(Object param) throws WpsException {
		// TODO Auto-generated method stub
		return null;
	}
	

	
	//反馈
	@Transactional(rollbackFor = Exception.class)
	public Void fanKui(Object param) throws WpsException {
		
		RepairWeiXiuBo bo = (RepairWeiXiuBo) param;
		
		repairWeiXiuFanKui.process(bo);
		
		return null;
	}

	//维修tij
	@Transactional(rollbackFor = Exception.class)
	public Void weixiuSubmit(Object param) throws WpsException {
		RepairWeiXiuBo bo = (RepairWeiXiuBo) param;
		weiXiuSubmit.process(bo);
		return null;
	}

	//签收
	/*@Transactional(rollbackFor = Exception.class)
	public Void qianShou(Object param)  throws WpsException {
		RepairAuditQianShouBo bo = (RepairAuditQianShouBo) param;
		repairAuditQianShou.process(bo);
		return null;
	}*/
	
	

	
	

	
}

